/*
 * @Author: harae Feng 
 * @Date: 2018-08-01 17:55:36 
 * @Describe 前端路由
 */

const router = require('koa-router')()

const backend = 'backend'

router.prefix('/b/v1')

// 404
router.get('/404', async (ctx, next) => {
    // ctx.response.body = '<h1>Index</h1>'
    return ctx.render(`404`)
})

// home
router.get('/home', async (ctx, next) => {
    return ctx.render(`${backend}/home/home`)
})


module.exports = router
